import request, { DataType, ResType } from './request';

// 获取问卷列表
export const getQuestionList = (params: any) => {
    return request({
        url: '/question',
        method: 'get',
        params,
    });
};

// 获取单个问卷
export const getQuestionById = (id: string) => {
    return request({
        url: `/question/${id}`,
        method: 'get',
    });
};

// 创建问卷
export const createQuestion = () => {
    return request({
        url: '/question',
        method: 'post',
    });
};
